<%@ include file="/WEB-INF/views/jsp/include/include.jsp"%>
<html>
<head>
    <title>Hand In Hand</title>
    <%@ include file="/WEB-INF/views/jsp/include/head.jsp"%>
</head>

<body>
	<%@ include file="/WEB-INF/views/jsp/include/header.jsp"%>
	<%@ include file="/WEB-INF/views/jsp/include/navigator.jsp"%>

	<div class="container-fluid">
		<div id="listOffers">
			<c:forEach var="offer" items="${offerList}">
				<div style="width:400px; height:100px; border: 1px solid #898787 !important; border-radius:10px; margin-top: 4px; margin-bottom: 4px; margin-left:4px; margin-right:4px; padding-bottom: 3px;padding-top: 3px;" class="col-xs-4">
				<a class="list-group-item-warning" href="<spring:url value='/communities/${communityId}/offers/${offer.id}'></spring:url>">
					${offer.name}
				</a><br>
				    ${offer.description}
				</div>
			</c:forEach>
<%-- 			<button onclick="location.href='<spring:url value="/newCommunity"></spring:url>'" >Create New Community</button> --%>
		</div>	
	</div>

	<%@ include file="/WEB-INF/views/jsp/include/footer.jsp"%>

</body>
</html>